#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdbool.h>
#include<string.h>

bool canPermutePalindrome(char* s)
{
	int map[256] = { 0 };
	int len = strlen(s);
	for (int i = 0; i < len; i++)
	{
		map[s[i]]++;
	}
	int count = 0;
	for (int i = 0; i < 256; i++)
	{
		if (map[i] % 2)
			count++;
	}
	if (count > 1)
		return false;
	return true;
}
int main()
{
	char str[] = "tactcoa";
	if (canPermutePalindrome(str))
		printf("True\n");
	else
		printf("False\n");
	return 0;
}